﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BaoJian.Control.bj
{
    /// <summary>
    /// 图片文章
    /// </summary>
    public partial class CImageColumn : System.Web.UI.UserControl
    {
        public string ColumnID = "9389fd0b-21d2-4972-a3e9-c8eef42b1b4b";
        public int ImageCount = 4;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string sql = "SELECT  TOP 4 oid,title , FirstImage FROM doc WHERE pid='" + ColumnID + "' ORDER by Ctime";
                DataSet ds = Maticsoft.DBUtility.DbHelperSQL.Query(sql);
                ImageNewsList.DataSource = ds.Tables[0];
                ImageNewsList.DataBind();  
            }
        }
    }
}